package com.ruoyi.project.jsrh.news.service.impl;

import java.util.List;

import com.ruoyi.project.jsrh.news.domain.TMemDrawrecord;
import com.ruoyi.project.jsrh.news.mapper.TMemDrawrecordMapper;
import com.ruoyi.project.jsrh.news.service.ITMemDrawrecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ruoyi.common.utils.text.Convert;

/**
 * 记录用户的详细提款信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-06-15
 */
@Service
public class TMemDrawrecordServiceImpl implements ITMemDrawrecordService
{
    @Autowired
    private TMemDrawrecordMapper tMemDrawrecordMapper;

    /**
     * 查询记录用户的详细提款信息
     * 
     * @param id 记录用户的详细提款信息ID
     * @return 记录用户的详细提款信息
     */
    @Override
    public TMemDrawrecord selectTMemDrawrecordById(String id)
    {
        return tMemDrawrecordMapper.selectTMemDrawrecordById(id);
    }

    /**
     * 查询记录用户的详细提款信息列表
     * 
     * @param tMemDrawrecord 记录用户的详细提款信息
     * @return 记录用户的详细提款信息
     */
    @Override
    public List<TMemDrawrecord> selectTMemDrawrecordList(TMemDrawrecord tMemDrawrecord)
    {
        return tMemDrawrecordMapper.selectTMemDrawrecordList(tMemDrawrecord);
    }

    /**
     * 新增记录用户的详细提款信息
     * 
     * @param tMemDrawrecord 记录用户的详细提款信息
     * @return 结果
     */
    @Override
    public int insertTMemDrawrecord(TMemDrawrecord tMemDrawrecord)
    {
        return tMemDrawrecordMapper.insertTMemDrawrecord(tMemDrawrecord);
    }

    /**
     * 修改记录用户的详细提款信息
     * 
     * @param tMemDrawrecord 记录用户的详细提款信息
     * @return 结果
     */
    @Override
    public int updateTMemDrawrecord(TMemDrawrecord tMemDrawrecord)
    {
        return tMemDrawrecordMapper.updateTMemDrawrecord(tMemDrawrecord);
    }

    /**
     * 删除记录用户的详细提款信息对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteTMemDrawrecordByIds(String ids)
    {
        return tMemDrawrecordMapper.deleteTMemDrawrecordByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除记录用户的详细提款信息信息
     * 
     * @param id 记录用户的详细提款信息ID
     * @return 结果
     */
    @Override
    public int deleteTMemDrawrecordById(String id)
    {
        return tMemDrawrecordMapper.deleteTMemDrawrecordById(id);
    }
}
